package com.nhim.cms.admin.client.place;

import com.google.gwt.place.shared.Place;
import com.google.gwt.place.shared.PlaceTokenizer;
import com.google.gwt.place.shared.Prefix;
import com.google.web.bindery.requestfactory.shared.RequestFactory;

public class DashboardPlace extends Place {
	 private String token;

	public DashboardPlace(String token) {
		this.token = token;
	}
	public String getToken()
	{
		return this.token;
	}
	
	
	
	/**
	 * Tokenizer, which by all rights should have been code generated. Stay
	 * tuned.
	 */
	@Prefix("d")
	public static class Tokenizer implements PlaceTokenizer<DashboardPlace> {
		static final String SEPARATOR = "!";
		public Tokenizer(RequestFactory requests) {
		}

		public DashboardPlace getPlace(String token) {

			return new DashboardPlace(token);
		}

		public String getToken(DashboardPlace place) {

			return place.getToken();
		}

	}
}
